#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QMessageBox>
#include <QIcon>

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);

    // 创建一个图标
    QIcon icon1(":/menu/icon/taiyang3.png");
    ui->actionNew->setIcon(icon1);


}

MainWindow::~MainWindow()
{
    delete ui;
}


/**
 * 新建
 * @brief MainWindow::on_actionNew_triggered
 */
void MainWindow::on_actionNew_triggered()
{
    QMessageBox::information(this,"title","新建");
}

/**
 * 保存
 * @brief MainWindow::on_actionNew_triggered
 */
void MainWindow::on_actionSave_triggered()
{
    QMessageBox::information(this,"title","保存");
}

/**
 * 退出
 * @brief MainWindow::on_actionNew_triggered
 */
void MainWindow::on_actionQuit_triggered()
{
    QCoreApplication::quit();
}

